extends Panel
class_name MainTool


const meta = {
	"data": {
		"mode_config": ModeConfig.config,
	},
	
	"main_tscn": null
}



onready var UILayer = $UILayer
onready var PopUpLayer = $PopUpLayer


func _ready():
	meta["main_tscn"] = self
		


static func getUILayer():
	return meta["main_tscn"].UILayer
# 提示
static func toast_info(text, time=3):
	meta["main_tscn"].PopUpLayer.toast_info(text, time)



# 提示
static func confirm(text, node=null, ok_method=null, cancle_method=null, data=null):
	meta["main_tscn"].PopUpLayer.confirm(text, node, ok_method, cancle_method, data)

